package com.foreverwin.jzymes.common.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Date;

/**
 * 良率看板表 Z_YIELD_LOG
 * 
 * @author ervin
 * @date 2019-06-17
 */
public class YieldLog
{
	private static final long serialVersionUID = 1L;
	
	/** 主键 */
	private String handle;
	/** 站点 */
	private String site;
	/** 时间区间 */
	private String timeRange;
	/** 工序 */
	private String operation;
	/** 物料 */
	private String itemBo;
	/** 投入量 */
	private Long inputQty;
	/** 一次良品数 */
	private Long goodQty;
	/** 重工数 */
	private Long reworkQty;
	/** 不可重工数 */
	private Long scrapQty;
	/** 一次良率 */
	private BigDecimal firstTimeYield;
	/** 二次良率 */
	private BigDecimal secondTimeYield;
	/** 开始日期 */
	private Date startDateTime;
	/** 结束日期 */
	private Date endDateTime;

	public void setHandle(String handle) 
	{
		this.handle = handle;
	}

	public String getHandle() 
	{
		return handle;
	}
	public void setSite(String site) 
	{
		this.site = site;
	}

	public String getSite() 
	{
		return site;
	}
	public void setTimeRange(String timeRange) 
	{
		this.timeRange = timeRange;
	}

	public String getTimeRange() 
	{
		return timeRange;
	}
	public void setOperation(String operation) 
	{
		this.operation = operation;
	}

	public String getOperation() 
	{
		return operation;
	}
	public void setItemBo(String itemBo) 
	{
		this.itemBo = itemBo;
	}

	public String getItemBo() 
	{
		return itemBo;
	}
	public void setInputQty(Long inputQty) 
	{
		this.inputQty = inputQty;
	}

	public Long getInputQty() 
	{
		return inputQty;
	}
	public void setGoodQty(Long goodQty) 
	{
		this.goodQty = goodQty;
	}

	public Long getGoodQty() 
	{
		return goodQty;
	}
	public void setReworkQty(Long reworkQty) 
	{
		this.reworkQty = reworkQty;
	}

	public Long getReworkQty() 
	{
		return reworkQty;
	}
	public void setScrapQty(Long scrapQty) 
	{
		this.scrapQty = scrapQty;
	}

	public Long getScrapQty() 
	{
		return scrapQty;
	}
	public void setFirstTimeYield(BigDecimal firstTimeYield) 
	{
		this.firstTimeYield = firstTimeYield;
	}

	public BigDecimal getFirstTimeYield() 
	{
		return firstTimeYield;
	}
	public void setSecondTimeYield(BigDecimal secondTimeYield) 
	{
		this.secondTimeYield = secondTimeYield;
	}

	public BigDecimal getSecondTimeYield() 
	{
		return secondTimeYield;
	}
	public void setStartDateTime(Date startDateTime) 
	{
		this.startDateTime = startDateTime;
	}

	public Date getStartDateTime() 
	{
		return startDateTime;
	}
	public void setEndDateTime(Date endDateTime) 
	{
		this.endDateTime = endDateTime;
	}

	public Date getEndDateTime() 
	{
		return endDateTime;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("handle", getHandle())
            .append("site", getSite())
            .append("timeRange", getTimeRange())
            .append("operation", getOperation())
            .append("itemBo", getItemBo())
            .append("inputQty", getInputQty())
            .append("goodQty", getGoodQty())
            .append("reworkQty", getReworkQty())
            .append("scrapQty", getScrapQty())
            .append("firstTimeYield", getFirstTimeYield())
            .append("secondTimeYield", getSecondTimeYield())
            .append("startDateTime", getStartDateTime())
            .append("endDateTime", getEndDateTime())
            .toString();
    }
}
